package com.shawn.integeration.async.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shawn
 * @description: 自定义异步异常
 * @date 2024/1/15
 */
@Getter
@Setter
public class AsyncException extends RuntimeException{
    private int code;

    public AsyncException() {
        super();
    }

    public AsyncException(String msg) {
        super(msg);
    }

    public AsyncException(int code, String msg) {
        super(msg);
        this.code = code;
    }
}
